package com.tom.demo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "修改密码的请求参数")
public class UserPasswordDto {


    @NotBlank(message="旧密码不能为空")
    @ApiModelProperty(required = true,value = "旧密码")
    @Length(max= 16,message="旧密码长度不能超过16位")
    private String oldPassword;

    @NotBlank(message="新密码不能为空")
    @ApiModelProperty(required = true,value = "新密码")
    @Length(max= 16,message="新密码长度不能超过16位")
    private String newPassword;

}
